package top.superflow.server

import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.ComponentScan
import org.springframework.data.orient.commons.repository.config.EnableOrientRepositories
import top.superflow.log.Loggable


@SpringBootApplication
@ComponentScan(Array(
  "top.superflow.flow",
  "top.superflow.core",
  "top.superflow.server.config",
  "top.superflow.context",
  "top.superflow.engine",
  "top.superflow.service",
  "top.superflow.version"))
class SuperFlowServer {
}


object SuperFlowServer extends Loggable{

  def main(args: Array[String]): Unit = {
    try{
      SpringApplication.run(classOf[SuperFlowServer] )
    }catch {
      case t: Throwable => {
        logger.error(t.getMessage, t)
      }
    }
  }



}